/**
 * 表单配置json
 */
import { Tp_proctypeEnum } from '@/enumeration/Tp_proctype'
import { getApplicantByApplyid } from '@/api/accept/apl_applicant'
import { Tp_decisionValue } from '@/enumeration/Tp_decision' 

/*** 获取函数 */
export function getSetting(busiType) {
  switch (busiType) {
    case Tp_proctypeEnum.accept_inform.value:
      // 受理-告知
      return apply_inform_setting
    case Tp_proctypeEnum.accept_accept.value:
      // 受理-受理
      return apply_accept_setting
    case Tp_proctypeEnum.accept_append.value:
      // 受理-补正
      return apply_append_setting
    case Tp_proctypeEnum.accept_noaccept.value:
      // 受理-不予受理
      return apply_noaccept_setting

    /**************审理******************/
    case Tp_proctypeEnum.hear_stop.value:
      // 审理-停止执行
      return hear_stop_setting
    case Tp_proctypeEnum.hear_hearing.value:
      // 审理-听证
      return hear_hearing_setting
    case Tp_proctypeEnum.hear_delay.value:
      // 审理-延期
      return hear_delay_setting
    case Tp_proctypeEnum.hear_restore.value:
      // 审理-恢复
      return hear_restore_setting
    case Tp_proctypeEnum.hear_rest.value:
      // 审理-中止
      return hear_rest_setting

    /**************决定******************/
    case Tp_proctypeEnum.execute_reminder.value:
      // 决定-履行催告
      return execute_reminder_setting
    case Tp_proctypeEnum.execute_perform.value:
      // 决定-责令履行
      return execute_perform_setting
    case Tp_proctypeEnum.execute_force.value:
      // 决定-强制执行
      return execute_force_setting
    case Tp_proctypeEnum.execute_punish.value:
      // 决定-政务处分
      return execute_punish_setting
    default:
      return undefined
  }
}
/** 受理-决定阶段的特殊函数 */
export function getDecisionSetting(decisionType) {
  let decisionArray = [
    hear_decision_termin_setting,
    hear_decision_reject_setting,
    hear_decision_decision_setting
  ]
  for (let decisionSetting of decisionArray) {
    let decisionTypeSetting = decisionSetting[0]
    if (decisionTypeSetting.decisionType.includes(decisionType)) {
      return decisionSetting
    }
  }
  return undefined

}

// 注释掉的select的选择框
// {
//   type: 'select',
//   key: 'apl_admre_audit_applyname',
//   name: '申请人',
//   labelCol: { span: 4 },
//   wrapperCol: { span: 20 },
//   disabled: false,
//   default: '',
//   placeholder: '请输入申请人',
//   format: undefined,
//   source: {
//     key: 'id',
//     value: 'name',
//     showKey: 'name'
//   },
//   sourceDataApi: getApplicantByApplyid,
//   sourceData: []
// },
/********************************受理环节********************************************/
/**
 *  受理-告知
 */
export const apply_inform_setting = [
  // 行政复议告知书
  {
    modalTitle: '告知',
    busiType: Tp_proctypeEnum.accept_inform.value,
    materialType: Tp_proctypeEnum.accept_inform.material.arrive_inform.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admre_audit_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      apl_admre_audit_applyname: [
        { required: true, message: '请输入申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ]
    }
  }
]

/**
 * 受理-受理
 */
export const apply_accept_setting = [
  // 行政复议申请受理通知书
  {
    modalTitle: '受理',
    busiType: Tp_proctypeEnum.accept_accept.value,
    materialType: Tp_proctypeEnum.accept_accept.material.admre_accept.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admre_audit_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      apl_admre_audit_applyname: [
        { required: true, message: '请输入申请人', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ]
    }
  },
  {
    // 行政复议答复通知书
    modalTitle: '受理',
    busiType: Tp_proctypeEnum.accept_accept.value,
    materialType: Tp_proctypeEnum.accept_accept.material.admre_reply.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admre_audit_targetname',
        name: '被申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入被申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'annex',
        name: '附件补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入附件补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      apl_admre_audit_targetname: [
        { required: true, message: '请输入被申请人', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      annex: [
        { required: true, message: '请输入附件补充内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ]
    }
  }
]

/**
 * 受理-补正
 */
export const apply_append_setting = [
  // 行政复议告知书
  {
    modalTitle: '补正',
    busiType: Tp_proctypeEnum.accept_append.value,
    materialType: Tp_proctypeEnum.accept_append.material.admre_append.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admre_audit_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      apl_admre_audit_applyname: [
        { required: true, message: '请输入申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ]
    }
  }
]

/**
 * 受理-不予受理
 */
export const apply_noaccept_setting = [
  // 不予受理行政复议申请决定书
  {
    modalTitle: '不予受理',
    busiType: Tp_proctypeEnum.accept_noaccept.value,
    materialType: Tp_proctypeEnum.accept_noaccept.material.admre_noaccept.value,
    formItem: [
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ]
    }
  }
]

/********************************审理环节********************************************/
// 受理后调解
// export const 

// 听证
export const hear_hearing_setting = [
  // 行政复议听证通知书
  {
    modalTitle: '听证',
    busiType: Tp_proctypeEnum.hear_hearing.value,
    materialType: Tp_proctypeEnum.hear_hearing.material.hear_hearing.value,
    formItem: [
      {
        type: 'input',
        key: 'party',
        name: '当事人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入当事人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      party: [
        { required: true, message: '请输入当事人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]


// 停止执行
export const hear_stop_setting = [
  // 停止执行行政行为通知书
  {
    modalTitle: '停止执行',
    busiType: Tp_proctypeEnum.hear_stop.value,
    materialType: Tp_proctypeEnum.hear_stop.material.hear_stop.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admreview_targetname',
        name: '被申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入被申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'copyto',
        name: '抄送人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入抄送人',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      apl_admreview_targetname: [
        { required: true, message: '请输入被申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      copyto: [
        { required: true, message: '请输入抄送人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]

// 延期
export const hear_delay_setting = [
  // 延期审理通知书
  {
    modalTitle: '延期',
    busiType: Tp_proctypeEnum.hear_delay.value,
    materialType: Tp_proctypeEnum.hear_delay.material.hear_delay.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admreview_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'number',
        key: 'daySize',
        name: '延期天数',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入延期天数',
        format: undefined,
        min: 0,
        max: 60
      },
      {
        type: 'input',
        key: 'copyto',
        name: '抄送人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入抄送人',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      daySize: [
        { required: true, message: '请输入延期天数', trigger: 'blur' }
      ],
      apl_admreview_applyname: [
        { required: true, message: '请输入申请人', trigger: 'change' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      copyto: [
        { required: true, message: '请输入抄送人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]

// 恢复
export const hear_restore_setting = [
  // 恢复审理通知书
  {
    modalTitle: '恢复',
    busiType: Tp_proctypeEnum.hear_restore.value,
    materialType: Tp_proctypeEnum.hear_restore.material.hear_restore.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admreview_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'copyto',
        name: '抄送人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入抄送人',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      apl_admreview_applyname: [
        { required: true, message: '请输入申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      copyto: [
        { required: true, message: '请输入抄送人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]

// 中止
export const hear_rest_setting = [
  // 中止行政复议通知书
  {
    modalTitle: '中止',
    busiType: Tp_proctypeEnum.hear_rest.value,
    materialType: Tp_proctypeEnum.hear_rest.material.hear_hangup.value,
    formItem: [
      {
        type: 'input',
        key: 'apl_admreview_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'copyto',
        name: '抄送人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入抄送人',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      apl_admreview_applyname: [
        { required: true, message: '请输入申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      copyto: [
        { required: true, message: '请输入抄送人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]

// 决定-终止-其它
export const hear_decision_termin_setting = [
  // 行政复议终止决定书
  {
    modalTitle: '决定',
    busiType: Tp_proctypeEnum.hear_decision.value,
    decisionType:  [
      Tp_decisionValue.TEROTHER
    ],
    materialType: Tp_proctypeEnum.hear_decision.material.hear_termin.value,
    formItem: [
      {
        type: 'textarea',
        key: 'applystr',
        name: '人员信息',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入人员信息',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      applystr: [
        { required: true, message: '请输入人员信息', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ]
    }
  }

]
// 决定-驳回 
export const hear_decision_reject_setting = [
  // 行政复议决定书-驳回阶段
  {
    modalTitle: '决定',
    busiType: Tp_proctypeEnum.hear_decision.value,
    decisionType:  [
      Tp_decisionValue.PROREJECT,
      Tp_decisionValue.SUBREJECT
    ],
    materialType: Tp_proctypeEnum.hear_decision.material.hear_reject.value,
    formItem: [
      {
        type: 'textarea',
        key: 'applystr',
        name: '人员信息',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入人员信息',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'aplrequest',
        name: '申请人请求',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入申请人请求',
        format: undefined
      },

      {
        type: 'textarea',
        key: 'illustrate',
        name: '申请人陈述',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入申请人陈述',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'reply',
        name: '被申请人答复',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入被申请人答复',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'thirequest',
        name: '第三人陈述',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入第三人陈述',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'finding',
        name: '审理查明',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入审理查明',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'think',
        name: '机关裁决',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入机关裁决',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      applystr: [
        { required: true, message: '请输入人员信息', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      aplrequest: [
        { required: true, message: '请输入申请人请求', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      illustrate: [
        { required: true, message: '请输入申请人陈述', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      reply: [
        { required: true, message: '请输入被申请人答复', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      thirequest: [
        { required: true, message: '请输入第三人陈述', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      finding: [
        { required: true, message: '请输入审理查明', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      think: [
        { required: true, message: '请输入机关裁决', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ]
    }
  }

]

// 决定-决定执行
export const hear_decision_decision_setting = [
  // 行政复议决定书决定-决定阶段
  {
    modalTitle: '决定',
    busiType: Tp_proctypeEnum.hear_decision.value,
    decisionType:  [
      Tp_decisionValue.MAINTAIN,
      Tp_decisionValue.BREAKLAW,
      Tp_decisionValue.CHANGE,
      Tp_decisionValue.ORDER,
      Tp_decisionValue.OTHER
    ],
    materialType: Tp_proctypeEnum.hear_decision.material.hear_decision.value,
    formItem: [
      {
        type: 'textarea',
        key: 'applystr',
        name: '人员信息',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        default: '',
        show: true,
        placeholder: '请输入人员信息',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'aplrequest',
        name: '申请人请求',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入申请人请求',
        format: undefined
      },

      {
        type: 'textarea',
        key: 'illustrate',
        name: '申请人陈述',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入申请人陈述',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'reply',
        name: '被申请人答复',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入被申请人答复',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'thirequest',
        name: '第三人陈述',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入第三人陈述',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'finding',
        name: '审理查明',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入审理查明',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'think',
        name: '机关裁决',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入机关裁决',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'according',
        name: '依据决定',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入依据决定',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'finald',
        name: '详情说明',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入详情说明',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      applystr: [
        { required: true, message: '请输入人员信息', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      aplrequest: [
        { required: true, message: '请输入申请人请求', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      illustrate: [
        { required: true, message: '请输入申请人陈述', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      reply: [
        { required: true, message: '请输入被申请人答复', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      thirequest: [
        { required: true, message: '请输入第三人陈述', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      finding: [
        { required: true, message: '请输入审理查明', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      think: [
        { required: true, message: '请输入机关裁决', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      according: [
        { required: true, message: '请输入依据决定', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ],
      finald: [
        { required: true, message: '请输入详情说明', trigger: 'blur' },
        { max: 500, message: '长度不能超过500', trigger: 'blur' }
      ]

    }
  }
]


/*****************************执行阶段****************************************** */
// 履行催告
export const execute_reminder_setting = [
  // 履行行政复议决定催告书
  {
    modalTitle: '履行催告',
    busiType: Tp_proctypeEnum.execute_reminder.value,
    materialType: Tp_proctypeEnum.execute_reminder.material.hear_reminder.value,
    formItem: [

      {
        type: 'input',
        key: 'apl_admreview_applyname',
        name: '申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '补充内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入补充内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      statement: [
        { required: true, message: '请输入补充内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      apl_admreview_applyname: [
        { required: true, message: '请输入申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]
// 责令履行
export const execute_perform_setting = [
  // 责令履行行政复议决定通知书
  {
    modalTitle: '责令履行',
    busiType: Tp_proctypeEnum.execute_perform.value,
    materialType: Tp_proctypeEnum.execute_perform.material.hear_perform.value,
    formItem: [

      {
        type: 'input',
        key: 'apl_admreview_targetname',
        name: '被申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入被申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'copyto',
        name: '抄送对象',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入抄送对象',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      apl_admreview_targetname: [
        { required: true, message: '请输入被申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ],
      copyto: [
        { required: true, message: '请输入抄送对象', trigger: 'blur' },
        { max: 100, message: '长度不能超过500', trigger: 'blur' }
      ]
    }
  }
]

// 强制执行
export const execute_force_setting = [
  // 行政复议强制执行决定书
  {
    modalTitle: '强制执行',
    busiType: Tp_proctypeEnum.execute_force.value,
    materialType: Tp_proctypeEnum.execute_force.material.arrive_force.value,
    formItem: [

      {
        type: 'input',
        key: 'passiveinfo',
        name: '被申请人',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入被申请人',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'statement',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      statement: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      passiveinfo: [
        { required: true, message: '请输入被申请人', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]

// 政务处分
export const execute_punish_setting = [
  // 政务处分建议书
  {
    modalTitle: '政务处分',
    busiType: Tp_proctypeEnum.execute_punish.value,
    materialType: Tp_proctypeEnum.execute_punish.material.arrive_punish.value,
    formItem: [

      {
        type: 'input',
        key: 'relevant',
        name: '有关人事/监察部门',
        labelCol: { span: 6 },
        wrapperCol: { span: 18 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入有关人事/监察部门',
        format: undefined
      },
      {
        type: 'textarea',
        key: 'content',
        name: '内容',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: true,
        default: '',
        placeholder: '请输入内容',
        format: undefined
      },
      {
        type: 'input',
        key: 'apl_admre_audit_code',
        name: '案号',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入案号',
        format: undefined
      },
      {
        type: 'input',
        key: 'today',
        name: '时间',
        labelCol: { span: 4 },
        wrapperCol: { span: 20 },
        disabled: false,
        show: false,
        default: '',
        placeholder: '请输入内容',
      format: undefined
      }
    ],
    rules: {
      content: [
        { required: true, message: '请输入内容', trigger: 'blur' },
        { max: 3000, message: '长度不能超过3000', trigger: 'blur' }
      ],
      relevant: [
        { required: true, message: '请输入有关人事/监察部门', trigger: 'blur' },
        { max: 100, message: '长度不能超过100', trigger: 'blur' }
      ]
    }
  }
]